package com.mmall.service;

import com.mmall.common.ServerResponse;
import com.mmall.pojo.User;

/**
 * Create by lisy on Qingdao
 **/
public interface IUserService {
    ServerResponse<User> loginService(String username, String password);

    ServerResponse<String> registerService(User user);

    ServerResponse<String> checkValid(String str, String type);

    ServerResponse<String> getQuestionByUsername(String username);

    ServerResponse<String> checkAswer(String username, String question, String answer);

    ServerResponse<String> forgetResetPassword(String username, String passwordNew, String forgetToken);

    ServerResponse<String> resetPassword(String passwordOld, String passwordNew, User user);

    ServerResponse<User> updateInformation(User user);

    ServerResponse<User> getInformation(int userId);

    ServerResponse<String> checkUserRole(User user);
}
